<script type="text/javascript">var pag = "<?=$pag?>"</script>